﻿using System;
using System.Web.UI;
using MyWeb.Business;

namespace MyWeb.TrangChinh.UC
{
    public partial class ucSupportOnline : UserControl
    {
        private readonly SupportService _supportService = new SupportService();

        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                listsupport.DataSource = _supportService.Support_GetByAll();
                listsupport.DataBind();
            }
        }

        public string Nick(string nick)
        {
            return "Skype:" + nick+ "?chat";
        }

        public string Image(string nick)
        {
            return "http://mystatus.skype.com/bigclassic/" + nick;
        }
    }
}